#ifndef PROJECTREADER_H
#define PROJECTREADER_H
#include <QString>
#include <QtXml>

class ProjectReader
{
public:
    /**
     * @brief 读取项目文件
     * @param filename
     * @return
     */
    bool Read(const QString& filename);

private:
    void readLight(QDomElement& project);
    void readCamera(QDomElement& project);
    void readSetting(QDomElement& project);
    void readScene(QDomElement& project);
    void readScript(QDomElement& project);
    void readExtra(QDomElement& project);
};

#endif // PROJECTREADER_H
